//配置 store
import Vue from 'vue';
import Vuex from 'vuex';//引入vuex包
Vue.use(Vuex);//安装插件到vue

import state from '../store/state.js'
import mutations from '../store/mutations.js'

import column from '../store/modules/column.js'
import follow from '../store/modules/follow.js'
import home from '../store/modules/home.js'
import user from '../store/modules/user.js'
import detail from '../store/modules/detail.js'

let store = new Vuex.Store({//配置接受state等选项，值为对象
  state,mutations,modules:{
	  column,follow,home,user,detail
  },

});

export default store;//导出store实例给main.js